package com.woniuxy.feign.hystrix;


import com.woniuxy.feign.UserFeign;
import com.work.framework.pojo.User;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: wanghao
 * @Date: 2019/9/20 11:06
 *
 * 用户模块熔断器
 */
@Component
public class UserHystrix implements UserFeign {
    /**
     * 查找user失败
     * @param uid
     * @return
     */
    @Override
    public User findUser(Integer uid) {
        System.out.println("查找user失败");
        return null;
    }

    /**
     * 查找users失败
     * @param users
     * @return
     */
    @Override
    public List<User> findUsers(String users) {
        System.out.println("查找user失败");
        return null;
    }

}
